package com.qys.livesMall.system.controller.app;

import com.qys.livesMall.common.result.R;
import com.qys.livesMall.system.model.vo.sys.PlatformNewsVO;
import com.qys.livesMall.system.service.PlatformNewsService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 平台新闻发布 前端控制器
 * </p>
 *
 * @author 
 * @since 2023-08-29
 */
@RestController
@RequestMapping("app/platformNews")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
@Tag(name = "app-平台新闻发布", description = "app-平台新闻发布")
public class AppPlatformNewsController {

    private final PlatformNewsService platformNewsService;

    @Operation(summary = "查询平台新闻")
    @GetMapping(value = "/getInfo")
    public R<List<PlatformNewsVO>> getInfo(){
        return R.ok(platformNewsService.getInfo());
    }
}
